package com.pengtu.gsj.service.impl.dl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.pengtu.gsj.dao.base.Page;
import com.pengtu.gsj.dao.base.QueryFilter;
import com.pengtu.gsj.dao.dl.RoadBasicInfoDao;
import com.pengtu.gsj.entity.dl.RoadBasicInfo;
import com.pengtu.gsj.service.dl.RoadbasicinfoService;

/**
 * 
 * 
 * RoadbasicinfoServiceImpl
 * 
 * 2017年4月19日 下午4:33:10
 * 
 * @version 1.0.0
 * 
 */
@Transactional
@Service
public class RoadbasicinfoServiceImpl implements RoadbasicinfoService {

	@Autowired
	private RoadBasicInfoDao roadbasicinfoDao;

	@Override
	public List<RoadBasicInfo> getRoadbasicinfos(QueryFilter queryFilter) {
		return roadbasicinfoDao.find(queryFilter);
	}

	@Override
	public Page<RoadBasicInfo> findRoadbasicinfos(Page<RoadBasicInfo> page,
			QueryFilter queryFilter) {
		return roadbasicinfoDao.findPage(page, queryFilter);
	}

	@Override
	public RoadBasicInfo getRoadbasicinfo(String id) {
		return roadbasicinfoDao.get(id);
	}

	@Override
	public void saveRoadbasicinfo(RoadBasicInfo roadbasicinfo) {
		roadbasicinfoDao.save(roadbasicinfo);
	}

	@Override
	public void deleteRoadbasicinfo(String id) {
		roadbasicinfoDao.delete(id);

	}

}
